package com.woniu.execption.goods;

import lombok.AllArgsConstructor;


@AllArgsConstructor
public enum GoodsExceptionCode {
    GOODS_Id_REPEAT(20001,"传入相同的商品id"),
    GOODS_NOT_EXITS(20002,"该商品不存在"),
    GOODS_STATE_NOT_OFF_SHELF(20003,"商品状态不是下架状态"),
    GOODS_STATE_IS_DELETE(20004,"存在商品已被删除"),
    GOODS_NAME_EXITS(20005,"商品名重复"),

    GOODS_STATE_ERROR(20006,"存在商品状态异常"),
    GOODS_IMAGE_NOT_NULL(20007,"商品的图片不能为空"),

    SHOPPING_CAR_IS_NULL(20008,"购物车不存在某商品id"),
    GOOD_NUMBER_INSUFFICIENT(20009,"商品数量不足"),
    ;
    private Integer code;
    private String messages;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }
}
